/**
 * Created by Administrator on 2017/5/16 0016.
 */
(function ($) {
    var token = localStorage.getItem("token");
    var username = localStorage.getItem("username");
    var department_name = localStorage.getItem("department_name");
    if (token != null && username != null && token != "undefined") {
        if($("#username").length>0){
         $("#username").text(username);
         $("#departmentName").text(department_name);
        }
    } else {
        $.toast("请登录");
        setTimeout(function() {
            window.location.href = "login.html";
        }, 1000);
    }
})(jQuery);